package cn.tedu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController  // 标明当前类是控制层
public class HelloController {

    // http://localhost:8080/hello
    @GetMapping("/hello")  //
    public String hello(){
        return "欢迎使用Springboot";
    }

}
